<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <script src="https://cdn.bootcdn.net/ajax/libs/moment.js/2.29.1/moment.js"></script>
</head>
<body>
    <script>
        var date=new Date();
        // date.setFullYear(2000);
        // date.setMonth(4);
        // date.setDate(23);
        // console.log(date.getDay());

        // date.setDate(date.getDate()+124);
        // console.log(date.getDay());;

        // console.log(date.getTime());
        // console.log(date.valueOf());
        // console.log(Date.now());

        var str=moment().format("YYYY-MM-DD hh:mm:ss:SSS");
        console.log(str);
    </script>
</body>
</html>